hostname is not configured under images in your next.config.js

✒️ 2025-05-28 11:00 내용 수정


/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  images: {
    remotePatterns: [
      {
        protocol: 'https',
        hostname: 'learn-codeit-kr-static.s3.ap-northeast-2.amazonaws.com',
        port: '',
        pathname: '/codeitmall/**'
      }
    ]
  }
};

export default nextConfig;
import Image from "next/image";

// 생략...

<Image src={product.imgUrl} alt={product.name} width={300} height={300}/>

next image unconfigured 2.png

next image unconfigured 3.png